<!DOCTYPE html>
<html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue Template</title>
</head>
<body>

    <!-- script标签 -->
    <!-- <script type="text/x-template" id="cpn">
        <div>
            <h1>模板标题</h1>
            <p>模板内容，啊啊啊啊 啊</p>
        </div>
    </script> -->

    <!-- template标签 -->
    <template id="cpn">
        <div>
            <h1>模板标题</h1>
            <p>模板内容，呵呵呵呵呵呵</p>
        </div>
    </template>

    <div id="app">
        <mycpn></mycpn>
        <mycpn></mycpn>
        <mycpn></mycpn>
        <mycpn></mycpn>
    </div>
<script src="../js/vue.js"></script>
<script>
    Vue.component('mycpn',{
        template:'#cpn'
    })
    const app = new Vue({
        el: '#app',
        data: {
            message: 'hello Vue!'
        }
    })
</script>
</body>
</html>